﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;

namespace BDPAutodetect.Simcore
{
    /// <summary>
    /// XML菜单数据
    /// </summary>
    [XmlTypeAttribute(AnonymousType = true)]
    [XmlRootAttribute("Menus", Namespace = "")]
    public class MenuData
    {
        /// <summary>
        /// 菜单项数据集
        /// </summary>
        [XmlElementAttribute("MenuItem")]
        public List<MenuDataItem> MenuItems { get; set; }

        /// <summary>
        /// 构造函数
        /// </summary>
        public MenuData()
        {
            this.MenuItems = new List<MenuDataItem>();
        }
    }
}
